package com.lagou.io;

import java.io.InputStream;

/**
 * @author caiwei
 * @date 2020-8-21 22:06
 */
public class Resources {

    //根据配置文件的路径，将配置文件加载成字节输入流，存储在内存中
    public static InputStream getResourceAsStream(String path){
        InputStream resouceAsStream = Resources.class.getClassLoader().getResourceAsStream(path);
        return resouceAsStream;
    }
}
